<%--
  Created by IntelliJ IDEA.
  User: YHY
  Date: 2024/6/18
  Time: 0:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<jsp:useBean id="currentDate" class="java.util.Date" />

<html>

<body>
<div id="header" class="wrap">
  <div id="logo"><a href="../productSelectByPage"><img src="../images/logo.gif" /></a></div>
  <div class="help"><a href="../">返回前台页面</a></div>
  <div class="navbar">
    <ul class="clearfix">
      <li class="current"><a href="index.jsp">首页</a></li>
      <li><a href="userSelectByPage">用户</a></li>
      <li><a href="ProductList">商品</a></li>
      <li><a href="OrderList">订单</a></li>
      <li><a href="viewSelectByPage">留言</a></li>
      <li><a href="newsSelectByPage">新闻</a></li>
    </ul>
  </div>
</div>
<div id="childNav">
  <div class="welcome wrap">
    <c:choose>
      <c:when test="${not empty sessionScope.user}">
        管理员${sessionScope.user.eu_user_id}您好，今天是
        <fmt:formatDate value="${currentDate}" pattern="yyyy-MM-dd" />，欢迎回到后台
      </c:when>
      <c:otherwise>
        当前是Debug模式，
        今天是<fmt:formatDate value="${currentDate}" pattern="yyyy-MM-dd"/>.
      </c:otherwise>
    </c:choose>
  </div>
</div>
</body>
</html>
